From 164567df7b1410c1e9f76d07d9ceac3ab6e30f3c Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Fri, 14 Jul 2006 14:01:25 +0100 Subject: [PATCH] [SVM] Add perfcounter svmexits array with correct size creation. Signed-off-by: Tom Woller --- xen/arch/x86/hvm/svm/svm.c | 2 +- xen/include/xen/perfc_defn.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/hvm/svm/svm.c b/xen/arch/x86/hvm/svm/svm.c index af2fa4d420..0fc10b0715 100644 --- a/xen/arch/x86/hvm/svm/svm.c +++ b/xen/arch/x86/hvm/svm/svm.c @@ -2710,7 +2710,7 @@ asmlinkage void svm_vmexit_handler(struct cpu_user_regs regs) domain_crash_synchronous(); } - perfc_incra(vmexits, exit_reason); + perfc_incra(svmexits, exit_reason); eip = vmcb->rip; #ifdef SVM_EXTRA_DEBUG diff --git a/xen/include/xen/perfc_defn.h b/xen/include/xen/perfc_defn.h index f2cf7b3388..ec477a72e3 100644 --- a/xen/include/xen/perfc_defn.h +++ b/xen/include/xen/perfc_defn.h @@ -30,6 +30,8 @@ PERFCOUNTER_ARRAY(exceptions, "exceptions", 32) #define VMX_PERF_VECTOR_SIZE 0x20 PERFCOUNTER_ARRAY(vmexits, "vmexits", VMX_PERF_EXIT_REASON_SIZE) PERFCOUNTER_ARRAY(cause_vector, "cause vector", VMX_PERF_VECTOR_SIZE) +#define SVM_PERF_EXIT_REASON_SIZE (1+136) +PERFCOUNTER_ARRAY(svmexits, "SVMexits", SVM_PERF_EXIT_REASON_SIZE) PERFCOUNTER_CPU(seg_fixups, "segmentation fixups") -- 2.30.2